package com.umakr.demo.service;

import com.umakr.demo.mapper.StudentMapper;
import com.umakr.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/16.
 */
@Service
public class StudentService {
   @Autowired
   StudentMapper studentMapper;

    public List<Student> showStudent(){
        return studentMapper.showStudent();
    }

    public void addStudent(Student student){
        studentMapper.addStudent(student);
    }

    public void updataStudent(Student student){
        studentMapper.updataStudent(student);
    }

    public void deleteStudent(Student student){
        studentMapper.deleteStudent(student);
    }
}
